<template lang="">
  <div class="header">
      <div class="mine-header">
        <div class="back"  @click="backAction">
            <span class="content"><</span>
            <span class="return">返回</span>
        </div>
        <template>
            <div class="text">
             <slot></slot>
            </div>
        </template>
      </div>  
  </div>
</template>
<script>
export default {
  name: "mine-header",
  data() {
    return {
        text:""
    }
  },
  methods: {
    backAction(ev) {
      // console.log(ev.currentTarget.firstElementChild.className);
      this.$router.back()
    }
  },
  created() { 
     
  },
}
</script>
<style lang="scss" scoped>
.header{
  border-bottom: 1px solid #b3b4c7;
}
  .mine-header{
    width: 100%;
    height: 45px;
    background-color: #fff;
    .back{
      width: 100px;
      height: 100%;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: flex-start;
      .content{
      font-size: 20px;
      font-weight: 300;
      color: #333;
      padding-left: 10px;
      }
      .return{
        font-size: 16px;
        color: #4a73ff;
        margin-left: 15px;
     }
    }
      .text{
      font-size: 16px;
      color: #32354A;
      font-weight: 600;
      position: absolute;
      line-height: 45px;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
    }
  }

</style>